package com.skyworthclub.competition.beans.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * @author li
 * @version 1.0
 * @since 18-10-20 下午5:07
 **/
@Data
public class DateRangeDto {

    @NotNull
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;
    /**
     * 上不封顶
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;

}
